import IconDemo from '@page/antd/IconDemo';
import WelcomePage from '@page/welcome/WelcomePage';
import HomePage from '@page/home/HomePage';

import DrawerExample from '@page/antd/DrawerExample';
import PopoverExample from '@page/antd/PopoverExample';
import BasicCarouselExample from '@page/antd/BasicCarouselExample';
import BasicGridExample from '@page/antd/BasicGridExample';
import BasicListExample from '@page/antd/BasicListExample';
import BasicCardExample from '@page/antd/BasicCardExample';
import ActionSheetExample from '@page/antd/ActionSheetExample';


const AntDRouter = {
  IconDemo: IconDemo,
  DrawerExample: DrawerExample,
  PopoverExample: PopoverExample,
  BasicCarouselExample: BasicCarouselExample,
  BasicGridExample: BasicGridExample,
  BasicListExample: BasicListExample,
  BasicCardExample: BasicCardExample,
  ActionSheetExample: ActionSheetExample,
};

/**
 * 需要被路由的页面
 */
export const routeConfigMap = {
  Welcome: WelcomePage,
  Home: HomePage,
  ...AntDRouter,
};
/**
 * 没想到好的办法，现在只能写两遍
 */
export const routeConfigMapName = {
  Welcome: 'Welcome',
  Home: 'Home',
  AntD: {
    IconDemo: 'IconDemo',
    DrawerExample: 'DrawerExample',
    PopoverExample: 'PopoverExample',
  },
};
